<template>
	<view class="content">
		<RichTextVue :nodes="newsData.content"></RichTextVue>
	</view>
</template>

<script>
import RichTextVue from './rich-text.vue'

export default {
	components: { RichTextVue },
	data() {
		return {
			newsData: {}
		}
	},
	onShow() {
		let that = this
		uni.getStorage({
			key: 'rich-text',
			data: { title: '隐私协议', content: '' },
			success: function (res) {
				uni.setNavigationBarTitle({ title: res.data.title })
				that.newsData = res.data
			}
		});
	},
	methods: {
	}
}
</script>

<style lang="scss" scoped>
.content {
	position: relative;
	padding: 30rpx;
}
</style>
